package com.daz.manager.studentScore.server.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.daz.manager.studentScore.dao.IStudentScoresDao;
import com.daz.manager.studentScore.pojo.StudentScoresPojo;
import com.daz.manager.studentScore.server.IStudentScoresSV;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
@Service
public class StudentScoresSVImpl implements IStudentScoresSV{
	@Autowired
	private IStudentScoresDao studentScoresDao;

	@Override
	public PageInfo<StudentScoresPojo> searchStudentScores(
			Map<String, Object> map,int pageNum,int pageSize) throws Exception {
		// TODO Auto-generated method stub
		PageHelper.startPage(pageNum, pageSize);
		List<StudentScoresPojo> list = studentScoresDao.searchStudentScores(map);
		return new PageInfo<>(list);
		
	}

	@Override
	public void insertSelective(StudentScoresPojo value) throws Exception {
		// TODO Auto-generated method stub
		studentScoresDao.insertSelective(value);
	}

	@Override
	public void deleteStudentScore(HashMap map) throws Exception {
		// TODO Auto-generated method stub
		studentScoresDao.deleteStudentScore(map);
	}

	@Override
	public void updateByPrimaryKeySelective(StudentScoresPojo vlaue)
			throws Exception {
		// TODO Auto-generated method stub
		studentScoresDao.updateByPrimaryKeySelective(vlaue);
	}


}
